#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <unistd.h>
#include <signal.h>

using namespace std;

int main(int argc, char *argv[]) {
  if (argc != 3){
    std::cout << "the count of parameter is error" << std::endl;
    exit(1);
  }
  int signalNum = stoi(argv[1]);  // 获取信号值
  pid_t pid = stoi(argv[2]);      // 获取进程ID

  if (kill(pid, signalNum) == -1) {
    perror("kill");
    exit(1);
  }

  return 0;
}